import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    token: '',
    userInfo: {},
    userPss: ''
  },
  getters: {
  },
  mutations: {
    SAVETOKEN (state, value) {
      state.token = value
    },
    SAVEUSERMSG (state, value) {
      state.userInfo = value
    },
    SAVEUSERPASS (state, value) {
      state.userPss = value
    }
    // CHANGEPIC(state, value){
    //   state.userInfo.
    // }
  },
  actions: {
  },
  modules: {
  }
})
